package be.kdg.componenten.chatters;

import java.rmi.RemoteException;
import java.rmi.NotBoundException;
import java.net.MalformedURLException;

/**
 * Tom Verelst
 * Wim Goeman
 */
public class StartChatter {
        public static void main(String args[]) throws RemoteException, MalformedURLException, NotBoundException {
        if(args.length != 1){
            System.out.println("Missing parameters! Usage: java RMIChat <username>");
            System.exit(1);
        }else{
            ChatterImpl chatter = new ChatterImpl(args[0]);
            chatter.run();
        }
    }
}
